package com.xypw.util;

public class CodeUtil {
	public static String getRandomNum(int len){
		String code = "";
		for(int i = 1; i<=len; i++){
			Integer temp = (int) (Math.random()*10);
			code = code + temp;
		}
		return code;
	}
	public static void main(String[] args) {
		System.out.println(CodeUtil.getRandomNum(4));
	}
}
